package com.chen.common.exception;

/**
 * @author ex_chenzy59
 * @since 2025/2/26
 */
public enum CodeResponse implements Code {
    OK(0,"ok"),
    Fail(-1,"失败"),

    ;

    public final int code;
    public final String msg;

    CodeResponse(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public int code() {
        return code;
    }
    @Override
    public String msg() {
        return msg;
    }
}
